package com.core.family.biz.yizhao.domain.po;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * @author honglei
 * @version 1.0
 * @time: 2023-7-12 0:39:28
 * @Description PO对象 一招报价变更
 */
@Data
@TableName(value = "yz_price_change")
public class YzPriceChange implements Serializable {


        /*
        *  报价时间
        */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        @TableField(value = "create_time")
        private Date createTime;

        /*
        *
        */
        @TableField(value = "id")
        private Integer id;

        /*
        *  申请人电话
        */
//        @NotNull(message = " 不能为空")
        @TableField(value = "master_hone")
        private String masterHone;

        /*
        *  申请人
        */
//        @NotNull(message = " 不能为空")
        @TableField(value = "master_name")
        private String masterName;

        /*
        *  订单id
        */
        @NotNull(message = " 不能为空")
        @TableField(value = "order_id")
        private Integer orderId;

        /*
        *  订单项目名称
        */
//        @NotNull(message = "项目名不能为空")
        @TableField(value = "order_name")
        private String orderName;

        /*
        *
        */

        @TableField(value = "orther")
        private String orther;

        /*
        *  总计
        */
        @NotNull(message = "项目名不能为空")
        @TableField(value = "price")
        private Double price;

        /*
        *
        */

        @TableField(value = "status")
        private String status;

        /*
        *
        */
        @NotNull(message = " 不能为空")
        @TableField(value = "title")
        private String title;

        /*
        *  接收人电话
        */
//        @NotNull(message = " 不能为空")
        @TableField(value = "to_hone")
        private String toHone;

        /*
        *  接收人
        */
//        @NotNull(message = " 不能为空")
        @TableField(value = "to_name")
        private String toName;

        /*
        *  发起人id
        */
        @NotNull(message = "发起人id 不能为空")
        @TableField(value = "user_id_st")
        private Integer userIdSt;

        /*
        *  接收人id
        */
//        @NotNull(message = "接收人id  不能为空")
        @TableField(value = "user_id_to")
        private Integer userIdTo;

}
